package volley

import grails.plugin.spock.*

class MySpec extends UnitSpec {

    def "domain mocking"() {
        setup:
        mockDomain(PlayerPosition)

        when:
        new PlayerPosition(name: name).save()

        then:
        PlayerPosition.findByName(name) != null

        where:
        name = "FW"
    }
}